package com.example.demo.model;

/**
 * Created by 豆腐干Sama on 2017/11/14.
 */
public class CommonResponse {
    private String status;
    private String message;
    private Object data;

    public void succeed(Object data) {
        this.data = data;
        this.status = "200";
        this.message = "请求成功";
    }

    public void failed() {
        this.status = "500";
        this.message = "请求失败";
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
